

"""
    任务：抓取这5页的数字，计算加和并提交结果
"""
import execjs
import requests

with open('12.js', 'r', encoding='utf-8') as fp:
    js_code = fp.read()
fun=execjs.compile(js_code)

headers = {
    'User-Agent': 'yuanrenxue.project'
}

url = f"https://match.yuanrenxue.cn/api/match/12"
params = {
    "page": 1,
    "m": fun.call('get_m', 1)
}
response = requests.get(url, params=params, headers=headers)
print(response.text)

